package cn.pli.bike.ui;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;

import com.framemodule.base.BaseDelegate;

import java.util.ArrayList;
import java.util.List;

import cn.pli.bike.R;
import cn.pli.bike.bean.UserBean;
import cn.pli.bike.bean.UserInfoSetBean;

/**
 * Created by shangdongzhou on 2017/11/8.
 */

public class CreditRecordDelegate extends BaseDelegate {


    private RecyclerView recyclerView;
    private CreditRecordAdapter userInfoAdapter;
    private TextView tvTitle;
    private TextView tvScore;


    @Override
    public void initTitleBar() {

    }

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_credit_record;
    }

    @Override
    public void initWidget() {
        super.initWidget();
        recyclerView = get(R.id.recycler_user_info);
        recyclerView.setLayoutManager(new LinearLayoutManager(this.getActivity()));
        userInfoAdapter = new CreditRecordAdapter(recyclerView);
        recyclerView.setAdapter(userInfoAdapter);
        tvTitle = get(R.id.tv_title);
        tvTitle.setText(R.string.credit_record);
        tvScore = get(R.id.tv_score);


    }


    public CreditRecordAdapter getUserInfoAdapter() {
        return userInfoAdapter;
    }


    public RecyclerView getRecyclerView() {
        return recyclerView;
    }

    public TextView getTvScore() {
        return tvScore;
    }
}
